package com.example.mallcart.fegin;

import com.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author guanglin.ma
 * @date 2024-01-07 10:03
 */
@FeignClient("mall-product")
@Component
public interface ProductFeignService {

    @RequestMapping("/mallproduct/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);


    @RequestMapping("/mallproduct/skuinfo/saleAttrs/{skuId}")
    List<String> getSaleAttrs(@PathVariable("skuId") Long skuId);
}
